#ifndef wm_moveresize_h
#define wm_moveresize_h
/*
 * Sylvain BERTRAND <digital.ragnarok@gmail.com>
 * code protected by GNU GPL v3
 */
enum wm_moveresize_type {
	WM_MOVE,
	WM_MOVE_KEYBOARD,
	WM_SIZE_TOPLEFT,
	WM_SIZE_TOP,
	WM_SIZE_TOPRIGHT,
	WM_SIZE_RIGHT,
	WM_SIZE_BOTTOMRIGHT,
	WM_SIZE_BOTTOM,
	WM_SIZE_BOTTOMLEFT,
	WM_SIZE_LEFT,
	WM_SIZE_KEYBOARD
};
gboolean moveresize_in_progress;
struct wm_client *moveresize_client;
XSyncAlarm moveresize_alarm;
void moveresize_startup(void);
void moveresize_shutdown(void);
void moveresize_start(struct wm_client *c, gint x, gint y, guint button, enum wm_moveresize_type type);
void moveresize_end(gboolean cancel);
gboolean moveresize_event(XEvent *e);
#endif
